package com.sixth.statistics.controller;

import com.sixth.core.entity.User;
import com.sixth.core.vo.R;
import com.sixth.statistics.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: six-hospital-system
 * @description: 用户管理控制器
 * @author: 朱永奇
 * @create: 2024-08-20 15:37
 **/
@Api(tags = "评价查询用户表医生名字")
@RestController
@RequestMapping("/statistics/user")
public class UserController {

    @Autowired
    private UserService userService;

    @ApiOperation(value = "评价查询用户表医生名字", notes = "获取所有用户的列表")
    @GetMapping("/list")
    public R<List<User>> listR() {
        return userService.selectAll();
    }
}
